package com.koron.css2.meterService.impl;

import com.koron.css2.common.dto.AttachmentDto;
import com.koron.css2.common.service.AbstractExportExcel;
import com.koron.css2.serviceManage.bean.RequestBean;
import com.koron.css2.serviceManage.bean.UserInfoBean;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 换表增加模板下载
 * @author 张涛
 *
 */
public class MsChgAddExport extends AbstractExportExcel{

	@Override
	public AttachmentDto getAttachment(SessionFactory factory, UserInfoBean userInfo, RequestBean req) {
		List<Map<String,Object>> result = new ArrayList<Map<String,Object>>();
		AttachmentDto attachemnt = new AttachmentDto();
		attachemnt.setBtlTemplate("MsChgAddImport.btl");
		attachemnt.setFilename("换表添加导入模板");
		attachemnt.setFileTemplate("MsChgAddImport.xlsx");
		attachemnt.setData(result);
		attachemnt.setFileType("excel");
		return attachemnt;
	}

}
